StupidBeauty
Read times:920Posted at:Mon Oct 7 22:04:37 2013
- no title specified

iOS开发文档翻译:CBCentralManager类参考,CBCentralManager Class Reference

概述

CBCentralManager对象,被用来管理那些被发现或已连接的远端外设设备(由 CBPeripheral 对象表示),具体包括:扫描、发现以及连接到正在广播的外设。

在妳调用CBCentralManager 的各个方法之前,该中央设备管理器的对象必须处于开启状态,即,其状态值应当为常量 CBCentralManagerStatePoweredOn 的值。这个状态意味着,该中央设备(例如,妳的iPhone或iPad)支持蓝牙低功耗,并且蓝牙被打开,处于可用状态。

属性

state

返回此中央设备管理器的当前状态。(只读)

@property(readonly) CBCentralManagerState state

讨论

当一个中央设备管理器对象被初次创建时,此属性的默认值会是 CBCentralManagerStateUnknown 。当该中央设备管理器的状态发生改变时,它会更新这个属性的值,并且调用centralManagerDidUpdateState:这个代表方法。参考“中央设备管理器状态”,以了解关于中央设备管理器的可能的状态值。

可用性
  • •.在iOS 5.0 及以上版本可用。

Your opinions
Your name:Email:Website url:Opinion content:
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4